import loadable from '@loadable/component'

const Balance = loadable(() => import('src/pages/Balance'))
const Benefit = loadable(() => import('src/pages/Benefit'))
const City = loadable(() => import('src/pages/City'))
const ConfirmOrder = loadable(() => import('src/pages/ConfirmOrder'))
const Download = loadable(() => import('src/pages/Download'))
const Find = loadable(() => import('src/pages/Find'))
const Food = loadable(() => import('src/pages/Food'))
const Forget = loadable(() => import('src/pages/Forget'))
const Home = loadable(() => import('src/pages/Home'))
const Login = loadable(() => import('src/pages/Login'))
const Msite = loadable(() => import('src/pages/Msite'))
const Order = loadable(() => import('src/pages/Order'))
const Points = loadable(() => import('src/pages/Points'))
const Profile = loadable(() => import('src/pages/Profile'))
const Search = loadable(() => import('src/pages/Search'))
const Service = loadable(() => import('src/pages/Service'))
const Shop = loadable(() => import('src/pages/Shop'))
const Vipcard = loadable(() => import('src/pages/Vipcard'))

const routerData = [
  {
    path: "/balance",
    Component: Balance,
  },
  {
    path: "/benefit",
    Component: Benefit,
  },
  {
    path: "/city/:cityId",
    Component: City,
  },
  {
    path: "/confirmorder",
    Component: ConfirmOrder,
  },
  {
    path: "/download",
    Component: Download,
  },
  {
    path: "/find",
    Component: Find,
  },
  {
    path: "/food",
    Component: Food,
  },
  {
    path: "/forget",
    Component: Forget,
  },
  {
    path: "/home",
    Component: Home,
  },
  {
    path: "/login",
    Component: Login,
  },
  {
    path: "/msite",
    Component: Msite,
  },
  {
    path: "/order",
    Component: Order,
  },
  {
    path: "/points",
    Component: Points,
  },
  {
    path: "/profile",
    Component: Profile,
  },
  {
    path: "/search",
    Component: Search,
  },
  {
    path: "/service",
    Component: Service,
  },
  {
    path: "/shop",
    Component: Shop,
  },
  {
    path: "/vipcard",
    Component: Vipcard,
  }
]


export default routerData